package com.yao.mall.service;

import com.yao.mall.model.dto.CarouselRequest;
import com.yao.mall.model.entity.Carousel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yao.mall.model.vo.CarouselVO;

import java.util.List;

/**
* @author jiahua.yao
* @description 针对表【carousel】的数据库操作Service
* @date 2024-03-19 16:01:23
*/
public interface CarouselService extends IService<Carousel> {

    /**
     * 获取轮播图
     * @return list
     */
    List<CarouselVO> getCarousel(Integer site);

    /**
     * 添加轮播图
     * @param carouselRequest dto
     * @return boolean
     */
    Boolean addCarousel(CarouselRequest carouselRequest);

    /**
     * 删除轮播图
     * @param id 录播图id
     * @return boolean
     */
    Boolean deleteCarousel(Long id);

    /**
     * 更新轮播图
     * @param carouselRequest dto
     * @return boolean
     */
    Boolean updateCarousel(CarouselRequest carouselRequest);

}
